/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 平台用户日志
 *
 * @author pigx code generator
 * @date 2022-08-10 16:31:53
 */
@Data
@TableName("user_logs")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "平台用户日志")
public class UserLogs extends Model<UserLogs> {

    private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value="id")
	private Long id;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value="用户id")
	private String uid;

	/**
	 * 日志类型
	 */
	@ApiModelProperty(value="日志类型")
	private String logType;

	/**
	 * 内容
	 */
	@ApiModelProperty(value="内容")
	private String content;

	/**
	 * IP
	 */
	@ApiModelProperty(value="IP")
	private String ip;

	/**
	 * 时间
	 */
	@ApiModelProperty(value="时间")
	private LocalDateTime createDate;

	/**
	 * userAgent
	 */
	@ApiModelProperty(value="userAgent")
	private String userAgent;

	/**
	 * 请求路径
	 */
	@ApiModelProperty(value="请求路径")
	private String requestUri;

	/**
	 * method
	 */
	@ApiModelProperty(value="method")
	private String method;

	/**
	 * params
	 */
	@ApiModelProperty(value="params")
	private String params;

	/**
	 * 执行时间
	 */
	@ApiModelProperty(value="执行时间")
	private Long time;

	/**
	 * exception
	 */
	@ApiModelProperty(value="exception")
	private String exception;


}
